package com.itwk.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itwk.common.utils.PageUtils;
import com.itwk.gulimall.product.entity.PmsCategoryBrandRelationEntity;
import com.itwk.gulimall.product.vo.BrandVo;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author wangke
 * @email wangke19970512@163.com
 * @date 2021-01-07 22:57:11
 */
public interface PmsCategoryBrandRelationService extends IService<PmsCategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetail(PmsCategoryBrandRelationEntity pmsCategorBrandRelation);

    List<PmsCategoryBrandRelationEntity> getRelation(Long brandId);

    void updateBrandRelation(Long brandId, String name);//品牌名称修改，同步修改方法

    void updateCategoryRelation(Long catId, String name);//分类名称修改，同步修改方法

    List<BrandVo> getCategoryBrand(Long catId); //发布商品时根据分类id查询关联品牌

}

